package ys.db2es.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ys.db2es.mapper.UserMapper;
import ys.db2es.pojo.User;
import ys.db2es.service.UserService;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper mapper;

    @Override
    public List<User> findAllUsers() {
        return mapper.selectList(null);
    }
}
